#!/bin/bash
touch result.txt
top -n 1 -b >> result.txt
ps -ef | grep Helloworld | grep -v grep | awk '{print $2}'|xargs kill -9
